package com.autumn.common.api.application.dto.input;

import java.io.Serializable;

/**
 * 条件项目
 * 
 * @author 杨昌国 2018-08-14 13:20:24
 */
public class QueryCriteriaItem implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3853658637364438678L;

	private String logic;
	private String expression;
	private String op;
	private Object value;
	private Object secondValue;

	/**
	 * 获取逻辑
	 *
	 * @return
	 */
	public String getLogic() {
		return logic;
	}

	/**
	 * 设置逻辑
	 *
	 * @param logic
	 *            And|Or|Not
	 */
	public void setLogic(String logic) {
		this.logic = logic;
	}

	/**
	 * 获取表达式
	 *
	 * @return
	 */
	public String getExpression() {
		return expression;
	}

	/**
	 * 设置表达式
	 *
	 * @param expression
	 *            属性名或列名
	 */
	public void setExpression(String expression) {
		this.expression = expression;
	}

	/**
	 * 获取运算符
	 *
	 * @return
	 */
	public String getOp() {
		return op;
	}

	/**
	 * 设置运算符
	 *
	 * @param op
	 */
	public void setOp(String op) {
		this.op = op;
	}

	/**
	 * 获取值
	 * 
	 * @return
	 */
	public Object getValue() {
		return value;
	}

	/**
	 * 设置值
	 * 
	 * @param value
	 *            值
	 */
	public void setValue(Object value) {
		this.value = value;
	}

	/**
	 * 获取记录值
	 * 
	 * @return
	 */
	public Object getSecondValue() {
		return secondValue;
	}

	/**
	 * 设置记录值
	 * 
	 * @param secondValue
	 *            记录值
	 */
	public void setSecondValue(Object secondValue) {
		this.secondValue = secondValue;
	}
}
